import request from '@/utils/request'

// 查询消息同步记录列表
export function listMqrecord(query) {
  return request({
    url: '/mq/mqrecord/list',
    method: 'get',
    params: query
  })
}

// 查询消息同步记录详细
export function getMqrecord(id) {
  return request({
    url: '/mq/mqrecord/' + id,
    method: 'get'
  })
}

// 新增消息同步记录
export function addMqrecord(data) {
  return request({
    url: '/mq/mqrecord',
    method: 'post',
    data: data
  })
}

// 修改消息同步记录
export function updateMqrecord(data) {
  return request({
    url: '/mq/mqrecord',
    method: 'put',
    data: data
  })
}

// 删除消息同步记录
export function delMqrecord(id) {
  return request({
    url: '/mq/mqrecord/' + id,
    method: 'delete'
  })
}
// 清空消息同步记录
export function handleDeleteAll(){
  return request({
    url: '/mq/mqrecord/clean',
    method: 'delete'
  })
}
